
package advisor;

import java.util.ArrayList;
import java.util.List;
import analyzer.Consultation;
import human.Human;

public class AdvancedAdvisor {
        private List<Advisor> advisors;
        private List<Consultation> consultations;
        
        public AdvancedAdvisor(Human pokemon) {
                super();
                advisors = new ArrayList<Advisor>();
                consultations = new ArrayList<Consultation>();
        }
        
        public void addAdvisors(Advisor advisor) {
                advisors.add(advisor);
        }

        public void deleteAdvisors(int indx) {
                advisors.remove(indx);
        }
        
        public void work() throws CloneNotSupportedException {
                consultations.clear();                 
                for(Advisor advisor : advisors) {                        
                        advisor.viewOrgan();                        
                        consultations.add(advisor.getConsultation());
                }                
        }
        
        public List<Consultation> getConsultations() {                
                return new ArrayList<Consultation>(consultations);
        }       
}
